package com.jytc.oa.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OaRetainInfo entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oa_retain_info")
public class OaRetainInfo implements java.io.Serializable {

	// Fields

	private Integer retainId;
	private String retainTitle;
	private String retainContent;
	private Integer retainCreator;
	private String retainTime;
	private Integer retainLimit;
	private String validFlag;

	// Constructors

	/** default constructor */
	public OaRetainInfo() {
	}

	/** minimal constructor */
	public OaRetainInfo(String retainTitle) {
		this.retainTitle = retainTitle;
	}

	/** full constructor */
	public OaRetainInfo(String retainTitle, String retainContent,
			Integer retainCreator, String retainTime, Integer retainLimit,
			String validFlag) {
		this.retainTitle = retainTitle;
		this.retainContent = retainContent;
		this.retainCreator = retainCreator;
		this.retainTime = retainTime;
		this.retainLimit = retainLimit;
		this.validFlag = validFlag;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "RETAIN_ID", unique = true, nullable = false)
	public Integer getRetainId() {
		return this.retainId;
	}

	public void setRetainId(Integer retainId) {
		this.retainId = retainId;
	}

	@Column(name = "RETAIN_TITLE", nullable = false, length = 100)
	public String getRetainTitle() {
		return this.retainTitle;
	}

	public void setRetainTitle(String retainTitle) {
		this.retainTitle = retainTitle;
	}

	@Column(name = "RETAIN_CONTENT", length = 2000)
	public String getRetainContent() {
		return this.retainContent;
	}

	public void setRetainContent(String retainContent) {
		this.retainContent = retainContent;
	}

	@Column(name = "RETAIN_CREATOR")
	public Integer getRetainCreator() {
		return this.retainCreator;
	}

	public void setRetainCreator(Integer retainCreator) {
		this.retainCreator = retainCreator;
	}

	@Column(name = "RETAIN_TIME", length = 14)
	public String getRetainTime() {
		return this.retainTime;
	}

	public void setRetainTime(String retainTime) {
		this.retainTime = retainTime;
	}

	@Column(name = "RETAIN_LIMIT")
	public Integer getRetainLimit() {
		return this.retainLimit;
	}

	public void setRetainLimit(Integer retainLimit) {
		this.retainLimit = retainLimit;
	}

	@Column(name = "VALID_FLAG", length = 1)
	public String getValidFlag() {
		return this.validFlag;
	}

	public void setValidFlag(String validFlag) {
		this.validFlag = validFlag;
	}

}